//
//  UIViewControllerAdditions.h
//  ColorRecall
//
//  Created by xuanqiang on 12-11-8.
//  Copyright (c) 2012年 Ecpalm. All rights reserved.
//
@interface UIView (LLView)
/**
 ** lineView:       需要绘制成虚线的view
 ** lineLength:     虚线的宽度
 ** lineSpacing:    虚线的间距
 ** lineColor:      虚线的颜色
 **/
+ (void)drawDashLine:(UIView *)lineView lineLength:(int)lineLength lineSpacing:(int)lineSpacing lineColor:(UIColor *)lineColor;

@end

@interface UIViewController(UIViewControllerAdditions)
- (void)setTitleForNavigation:(NSString *)title;
- (void)setLeftButtonForNavigation:(NSString *)imageName title:title selector:(SEL)sel;
- (void)setRightButtonForNavigation:(NSString *)imageName title:title selector:(SEL)sel;
- (void)setLeftButtonForNavigation:(NSString *)titleName isArrow:(BOOL)flag selector:(SEL)sel;
- (void)backActionForNavigation:(id)sender;

- (void)showLeftButtonImageName:(NSString *)imageName selector:(SEL)sel;
- (void)showLeftBarButttonItem:(NSString *)title selector:(SEL)sel;
- (void)showLeftBarButttonItem:(NSString *)title selector:(SEL)sel navItem:(UINavigationItem *)item;
- (void)popSelf:(UIViewController *)selfVc pushViewController:(UIViewController *)toController;
- (void)popSelf:(UIViewController *)selfVc pushViewController:(UIViewController *)toController animation:(BOOL)animation;
- (UIButton *)viewControllerCreateButtonLeftItem:(NSString *)title image:(NSString *)imageName selector:(SEL)sel;
//- (void)showLeftBarButttonItem:(NSString *)title image:(NSString *)imageName selector:(SEL)sel navItem:(UINavigationItem *)item;
- (void)showRightBarButtonTitle:(NSString *)title selector:(SEL)sel ;
- (void)showRightBarbBlackButtonTitle:(NSString *)title selector:(SEL)sel ;

//- (void)showRightBarButtonItem:(NSString *)imageName selector:(SEL)sel;
- (void)showRightBarButtonItem:(NSString *)imageName title:(NSString *)title selector:(SEL)sel;
- (void)showRightBarButtonItem:(NSString *)imageName title:(NSString *)title selector:(SEL)sel navItem:(UINavigationItem *)item;

- (void)showLeftBarButtonTitle:(NSString *)title selector:(SEL)sel;
- (UIView *)showLeftLabelBarButttonItem:(NSString *)title image:(NSString *)imageName selector:(SEL)sel;

//ios 10以及以下获取rightitem的时候回出现nil的情况。使用这种获取
- (UIBarButtonItem *)getRightItem;
- (UIBarButtonItem *)getLeftItem;

- (UIBarButtonItem *)getItemImage:(NSString *)imageName selector:(SEL)sel;
- (BOOL)isCheckHavViewController:(NSString *)className;
- (void)showLeftLabelBarButttonItem:(NSString *)title image:(NSString *)imageName selector:(SEL)sel navItem:(UINavigationItem *)item ;
- (UIViewController *)getCurrentViewController;
@end
